<div id="rearnav">
   <div class="search">
	  <p class="p_menu">Търсене</p>
   </div>
   	 
	  <form method="post" action="../extra/search.php">
	     <input type="text" name="search"/>
	     <input type="submit" name="submit" value="" class="input_menu" style="width: 30px; height: 30px; background-image: url('../img/lupa.png'); border: none; position: relative; top: -4px;" />
	  </form>
	  
    <br />
    <div class="search">
	  <p class="p_menu">Главно меню</p>
   </div>
   <p>
        <a href="../index.php" class="a_menu">Начало</a><br /><br />
	    <a href="../forum/forum.php" class="a_menu">Форум</a><br /><br />
	    <a href="../contact_us/contact.php" class="a_menu">Контакти</a><br /><br />
	    <a href="../extra/faq.php" class="a_menu">FAQ</a><br />
   </p>
   <div class="search">
	  <p class="p_menu">Статистика</p>
   </div>
   <?php
	  $sel_art = mysql_query('SELECT * FROM articles');
	  $num_art = mysql_num_rows($sel_art);
	  
	  $sel_test = mysql_query('SELECT * FROM test');
	  $num_test = mysql_num_rows($sel_test);
	  
	  $sel_term = mysql_query('SELECT * FROM termin');
	  $num_term = mysql_num_rows($sel_term);
	  
	  $sel_mod = mysql_query('SELECT * FROM modules');
	  $num_mod = mysql_num_rows($sel_mod);
	  
	  $sel_gal = mysql_query('SELECT * FROM gallery');
	  $num_gal = mysql_num_rows($sel_gal);
	  ?>
	  <h4 style="margin-left: 10px; color: #555; position: relative; top: -20px;">По самоучители</h4>
      <table border='1' style="border: 1px solid #999; border-collapse: collapse; color: #333; width: 230px; margin-left: 10px; border-color: #999; position: relative; top: -15px;">
	     <tr style="height: 30px;"><td style="position: relative; left: 5px; width: 140px;">Уроци</td><td style='text-align: left; position: relative; left: 5px;'><?php echo '<b>'.$num_art.'</b>'; ?> урока</td></tr>
		 <tr style="height: 30px;"><td style="position: relative; left: 5px; width: 140px;">Тестове</td><td style='text-align: left; position: relative; left: 5px;'><?php echo '<b>'.$num_test.'</b>'; ?> теста</td></tr>
		 <tr style="height: 30px;"><td style="position: relative; left: 5px; width: 140px;">Термини</td><td style='text-align: left; position: relative; left: 5px;'><?php echo '<b>'.$num_term.'</b>'; ?> термина</td></tr>
		 <tr style="height: 30px;"><td style="position: relative; left: 5px; width: 140px;">Модули</td><td style='text-align: left; position: relative; left: 5px;'><?php echo '<b>'.$num_mod.'</b>'; ?> модули</td></tr>
		 <tr style="height: 30px;"><td style="position: relative; left: 5px; width: 140px;">Галерии</td><td style='text-align: left; position: relative; left: 5px;'><?php echo '<b>'.$num_gal.'</b>'; ?> галерии</td></tr>
	  </table>
    <div class="search">
	  <p class="p_menu">Анкета</p>
   </div>
   <?php
   include "../php/polls/poll_users.php";
   ?>
</div>